import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";


@Entity({ name: 'playWith' })
export class PlayWith {

    @PrimaryGeneratedColumn()
    id: number

    @Column({ name: 'playWithId', type: "text", comment: "陪玩id" })
    playWithId: string;

    @Column({ name: 'playWithName', type: "text", comment: "陪玩名称" })
    playWithName: string;

    @Column({ name: "unitPrice", type: "int", comment: "陪玩单价" })
    unitPrice: number;
    @Column({ name: "mgtType", type: "int", comment: "陪玩类型    1.普通陪玩 2.管理陪玩" })
    mgtType: number;

    @Column({ name: "commissionRate", type: "int", comment: "抽成" })
    commissionRate: number;
}
